package com.my.mapper;

import com.my.bean.Room;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 房间 Mapper 接口
 * </p>
 *
 * @author 张子艺
 * @since 2018-08-30
 */
public interface RoomMapper extends BaseMapper<Room> {
   Long findOrderIdByHomeId(@Param("homeId")Long homeId);
   List<Room> findAllMealNameByHomeId(@Param("param")Long homeId);
   Map findAllMoneyByHomeId(@Param("param")Long homeId);
   Map findAllOrderMoneyByHomeId(@Param("param")Long homeId);
   List<Long> findAllProjectByHomeId(@Param("param")Long homeId);
   List<Room> selectHomeList(@Param("data1")String[] data1,@Param("data2")String[] data2,@Param("param") String param,@Param("userId")Long userId,@Param("admin")boolean admin,@Param("areaid")long areaid);
   List<Room> selectHomeListBySerch( @Param("param") String param,@Param("userId")Long userId,@Param("admin")boolean admin,@Param("areaid")long areaid);
   List<Room> findRoomByNoOrder(@Param("userId")Long userId,@Param("admin")boolean admin,@Param("areaid") long areaid);
}